package cn.springcloud.fix.server.api.log.feign;

import cn.springcloud.fix.common.core.base.R;
import cn.springcloud.fix.server.api.log.feign.factory.RemoteLogFallbackFactory;
import cn.springcloud.fix.server.api.log.request.SysLoginLogRequest;
import cn.springcloud.fix.server.api.log.request.SysOperateLogRequest;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "springcloud-server", path = "/server/remote", fallbackFactory = RemoteLogFallbackFactory.class)
public interface RemoteLogService {

    @PostMapping("/insertOpLog")
    R<Object> insertOpLog(@RequestBody SysOperateLogRequest request);

    @PostMapping("/loginInfo/save")
    R<Object> insertLoginLog(@RequestBody SysLoginLogRequest request);

}
